package
{
	import flash.display.Sprite;
	
	import name.as3.SpriteMirror.MirrorSprite;

	public class SpriteMirror extends Sprite
	{
		private var m_obMc:TestSprite ;
		private var m_nMcWidth:int = 200 ;
		private var m_nMcHeight:int = 120 ;
		private var m_obMirror:MirrorSprite ;
		
		/**∥∥∥∥∥∥∥∥∥∥∥∥∥∥∥∥∥∥∥∥∥∥∥∥∥∥∥∥∥∥∥∥∥∥∥构造函数
		 */		
		public function SpriteMirror()
		{
			super();
			m_obMc = new TestSprite () ;
			m_obMirror = new MirrorSprite() ;
			m_obMirror.add(m_obMc) ;
			super.addChild(m_obMc);
			super.addChild(m_obMirror) ;
			m_obMc.setSize(m_nMcWidth , m_nMcHeight ) ;
		}
		
	}
}
	import flash.display.Sprite;
	import flash.events.MouseEvent;
	import name.as3.managers.DragManager;
	import name.as3.managers.RandomPosManager;
	


class TestSprite extends Sprite 
{
	/**∥∥∥∥∥∥∥∥∥∥∥∥∥∥∥∥∥∥∥∥∥∥∥∥∥∥∥∥∥∥∥∥∥∥∥构造函数
	 */	
	public function TestSprite() 
	{
		super() ;
		var obManager:DragManager = new DragManager(this,null ) ;
		var posManager:RandomPosManager = new RandomPosManager(this) ;
	}
	/**
	 * 
	 * @param nWidth
	 * @param nHeight
	 * 
	 */	
	public function setSize(nWidth:int,nHeight:int ):void
	{
		graphics.clear();
		graphics.beginFill(0xff0000);
		graphics.drawRect(0,0,nWidth , nHeight ) 
	}

}